package kr.haggenna.reservation.dao;

import java.util.List;

import kr.haggenna.reservation.domain.Menu;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

@Component
public class MenuDaoImpl extends SqlSessionDaoSupport implements MenuDao{
	@Override
	public void insertMenu(Menu menu) {
		getSqlSession().insert("insertMenu", menu);
	}
	
	@Override
	public List<Menu> getMenuByReservation(int res_num) {
		List<Menu> list = getSqlSession().selectList("getMenuByReservation", res_num);
		return list;
	}
}
